import Vue from 'vue'
import App from './App.vue'
import router from './router'
// import './plugins/element.js'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// 导入全局样式
import './assets/css/global.css'
// 导入字体图标·
import './assets/fonts/iconfont.css'



import axios from 'axios'
axios.defaults.baseURL = 'http://127.0.0.1:99/'

axios.interceptors.request.use(config => {
  config.headers['ng-params-one'] = window.localStorage.getItem('ng-params-one')
  config.headers['ng-params-two'] = window.localStorage.getItem('ng-params-two')
  config.headers['ng-params-three'] = window.localStorage.getItem('ng-params-three')
  return config
})

Vue.prototype.$http = axios

Vue.use(ElementUI)

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
